// PR c++/66844
// { dg-do compile { target c++20 } }

template <class T, class U>
concept Same = __is_same_as(T, U);

template <class T>
concept C = requires (T t) {	// { dg-error "invalid parameter|in requirements" }
    requires Same<decltype(t),void>;
  };

template <typename T>
  requires C<T>
constexpr bool is_c() { return true; }

static_assert(is_c<void>(), ""); // { dg-error "" }
